package com.robam.cloud.usercenter.dao;


import com.robam.cloud.common.bean.usercenter.entity.LoginAccount;
import org.apache.ibatis.annotations.Param;

public interface LoginAccountMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LoginAccount record);

    int insertSelective(LoginAccount record);

    LoginAccount selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(LoginAccount record);

    int updateByPrimaryKey(LoginAccount record);

    Long isNewLoginAccount(@Param(value = "platformId") Long platformId, @Param(value = "accountOpenid") String accountOpenid);

    LoginAccount getOldLoginAccount(@Param(value = "platformId") Long platformId, @Param(value = "accountOpenid") String accountOpenid);

    LoginAccount queryByOpenId(String accountOpenid);
}